package com.ksc.storekeeper.client.view.validation;

import com.github.gwtbootstrap.client.ui.ListBox;


public class ValidatingListBox extends ListBox implements IsValidatingWidget<String> {
	private final ValidatingHelper<String> helper;

	public ValidatingListBox() {
		helper = new ValidatingHelper<String>(this);
	}

	public void setRequired(boolean required) {
		helper.setRequired(required);
	}

	@Override
	public Validation validateListBox(String value) {
		return helper.validateListBox(value);
	}

	@Override
	public String getErrorMessage() {
		return helper.getErrorMessage();
	}

	@Override
	public Validation validate() {
		return null;
	}

	@Override
	public Validation validateDouble(String value) {
		return null;
	}

	@Override
	public void showInvalid() {
		helper.showInvalid();
	}

	@Override
	public void removeInvalid() {
		helper.removeInvalid();
	}

	@Override
	public String getValue() {
		return null;
	}

	@Override
	public String getText() {
		return null;
	}

	@Override
	public void setText(String arg0) {
	}

	@Override
	public Validation validateEmail() {
		return null;
	}

	@Override
	public void setMinLength(int length) {

	}

	@Override
	public Validation validate(String date) {
		return null;
	}

	@Override
	public Validation validateDoubleWithMinLimit(Double value, Double minValue) {
		return null;
	}

	@Override
	public Validation validatePassword() {
		return null;
	}

	@Override
	public void setMaxLength(int length) {

	}

	@Override
	public Validation validatePin() {
		return null;
	}

}
